package itdfq.ydd.Behavior_Patters.State;

/**
 * @Author GocChin
 * @Date 2021/5/24 14:14
 * @Blog: itdfq.com
 * @QQ: 909256107
 * @Descript:
 */
public class Client {
    public static void main(String[] args){
        System.out.println("18031210136  杨丹丹");
        System.out.println("============Begin StateTest========");
        Context context = new Context();
        StartState startState = new StartState();
        startState.doAction(context);

        PauseState pauseState = new PauseState();
        pauseState.doAction(context);

        StopState stopState = new StopState();
        stopState.doAction(context);

        System.out.println("current state: " + context.getState().toString());

        System.out.println("============End StateTest========");

    }
}
